Refactor jQuery inclusion in JavaScript helper.