S'more js cleanup