remove another bad js function