Browsing: JavaScript error handling