Simplify jQuery detection