fix issues in jQuery 2.1.1
Merge pull request #56 from shadowglen/master

fix issues in jQuery 2.1.1