refactor, one module by JavaScript file