Fix for jQuery 1.9+
Merge pull request #1 from paulwittmann/patch-1

Fix for jQuery 1.9+