Added fallback code for other browsers.