avoiding a warning using jquery 1.11