Make Hammer compatible with jQuery < 1.7

One of the sites I'm using Hammer JS for uses jQuery 1.5 and this plugin needs a little change in order to work with new and old versions of jQuery.