Develop js

@scriptedSheep could you please take a look at this pull request