Fix issue with JQuery 1.9+
Merge pull request #2 from jwdallas/master

Fix issue with JQuery 1.9+