fix jshint/jscs errors

Modified GruntFile, fixed formatting errors in server-side code.