https://gist.github.com/calvinmetcalf/7190597 Here is the JavaScript without the comments https://gist.github.com/calvinmetcalf/7196496