[loadmode addon] Work with requirejs

See http://discuss.codemirror.net/t/loadmode-js