Main.js set up