Remove unnecessary imports and add to jshint predef whitelist