JS cleanup, reset button event working