Refactor to modularization.
Wrap js files in closure.