Hacks for browser detection