make "npm run-script watch" work

It actually works this time, and creates proper .js files.