Modify javascropt so that error events are handeled properly by the webview delegate.
Merge pull request #10 from Anislav/fix/error-events

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