This is weird, The following line of javascript:
alert("test");
gives the following error in chrome:
Uncaught TypeError: Property 'alert' of object [object DOMWindow] is not a function
It also breaks when using a prompt. Oddly it works in firefox. Any ideas?