working on main.js file