Fix long press threshold and set ios7 to true on ios8 devices using jQuery shim