Update browser.js

Added a robust error message.