Fixes various browser incompabilities