build DefineJS modules using r.js. Related to #5