Improve define method
Little improvement of code style
Refactor module.js