Modify javascropt so that error events are handeled properly by the webv...

...iew delegate.