split main.js into bite size chunks