remove javascript directive