refactored to put javascript interactions in a new file
More or less same thing
asdf
Merge branch 'master' of https://github.com/benasour/PYP