Removed most inline javascript from HTML and placed in external files.

Ensured everything was minified and accessible from /js/prod. Original
un-minified available in /js/dev for tinkering.