fixed grunt errors and added global variables to jshint.