break main.js into multiple files