add support of modules r.js optimization