Support for alerts and prompts

Added support for javascript alerts and prompts.  Example usage here:

https://gist.github.com/jonstjohn/6117202