cleaning main.js