Cleaning main.js