refactorizing main.js