(#2143) - Make npm run build work on Windows

Just add 'node' to version and npm run build will work on Linux/OS X and Windows. Although I only tested it on Linux and Windows.
(#2143) - use fs to write a file, prepend js scripts with node, and fix jshint