add npm hooks and nom-scripts.js