Fix jquery versions 1.10 upwards being treated as smaller than 1.8

Thanks for meltdown, nice work!

At the moment, jquery versions 1.10 and greater are treated as smaller than 1.8 (1.8 > 1.11 => true). This pr contains a fix.