cleanup main js