Revert "Fix bug in calling of requirejs callbacks."

This reverts commit d54fec3e9283092f81ca84e1cfdf5c67ef407509.  It broke the build.