// Lazily load head elements and ensure they are only loaded once
if (headElements == null) {
headElements = super.getHeadElements();
// Add the jQuery library
headElements.add(new JsImport("/assets/js/jquery-1.3.2.js"));
// Create a default model and add the pageSize variable to pass to
// the JavaScript template: ajax-live-scroller.js
Map model = ClickUtils.createTemplateModel(this, getContext());
model.put("pageSize", pageSize);