Moved check for browser support as high as it can go.