Compatibility with jQuery 1.11.1 and 2.1.1. Close #4.