created main.js file