Fix requirejs implementation

@jdfreder I have not much experience with git submodules. Do you think this is correct?