replace jQuery-based browser detectiong with actual deprecated jQuery code for quick fix in 1.7 -> 1.10 transition