Added check for browser type