main.js file