Fix for JQuery 1.9