Fix jQuery 1.9 compatibility
Merge pull request #1487 from ai/jquery19

jQuery 1.9 compatibility