fix jquery versions 1.10 upwards being treated as less than 1.8