Added some browser compatibility tweaks