Update script to work correctly

closes #3
Merge branch 'master' into js-update-readme
wip