Fixing JS issue in main.js template, additional options for Grunt tasks