Fix Javascript bbq browser detection deprecation by jquery