Fix for jQuery 1.9
Merge pull request #727 from Schlogen/master

jQuery 1.9 Fixes