Tiny function to check browser compatibility