refactoring requirejs package & add optimizer r.js