Better error catching on script evaluation in browser.