Fixed a few browser compatability issues