js cleanup