Moved JavaScript into it's own file
Merge pull request #1 from jillesme/master

Moved JavaScript into it's own file and JS improvements