fix #1165 npm start running grunt build twice

It also refactors package.json