fix issues in jQuery 2.1.1