little more js cleanup