fixes issue #114: move JS in index.html to separate file
Merge pull request #115 from MichaelKohler/jsfile

fixes issue #114: move JS in index.html to separate file