Added browser specific hacks for Firefox :(