Remove js method that is not used (and shouldn't have been used)