initial js cleanup