Patch 1

Fixed for jquery mobile 1.4.2.

Made a mess with my fork, not used to using github. This should be tested.