remove old JS functions