added support for jQuery 1.7+
 #7 fixed