Fix for newer version of requirejs.