jshinted and cleaned up requirejs stuff