make it work with jQuery 1.11