Fix compatibility with jQuery 1.9
Merge pull request #62 from dipth/jquery19

Fix compatibility with jQuery 1.9