added support for jQuery 1.7+
 #8 fixed