Simpler requirejs error handling