Fix requirejs implementation