clean the doms and js files