Refactor main.js file