Split main2.js into individual files.