Converts to Requirejs using r.js