remove javascript function