Remove alert() that does not work in webapps