add npm hooks and npm-scripts.js