Move JS to file, small refactors, linear animation
Merge pull request #1 from avaly/tidyup

Move JS to file, small refactors, linear animation