requirejs compatibility fix