Added support for JavaScript alerts