Code optimization & create packages for RequireJS build.