term hours page js cleanup