use requirejs directly instead of copying code