// assumes jquery is used with $(...) sbool jqueryUsed(S html) { if (!regexpFind("$\\s*\\(", html)) false; for (S script : allJavascriptFromHTML(html)) if (jcontains(jsTok(script), "$(")) true; false; }