Fixed for JQuery support 1.7 +