remove javascript method