change to make it work with jquery 1.11.1