Fixes browser check for jQuery 1.8 and Chrome