Init main.js for refactor