Clean up globals for jshint