Add extension js file to gruntfile and fix jshint errors.