Updated checks for browser compatability