fixed error with jquery 2.1.1