add check for JQuery.