fix issue #2

add onBrowserError event

[issue #2]