updated Gruntfile and main.js for amd Handlebars support