moved a bunch of js to html for less clutter
Merge pull request #23 from jpecht/master

moved a bunch of js to html for less clutter