cleane up main.js