Make the samples work on Windows

Moved the npm run-scripts to make.js and use shelljs to make it Windows-compatible.