Format main.js for better readability