Moved the JavaScript to the bottom of the body.

Per the suggestion of designedbyscience.