Split main.js into modules.
Split main.js into modules.