// Include the prototype.js library which is made available under
// the web folder "/click/prototype/"
headElements.add(new JsImport("/click/prototype/prototype.js"));
Context context = getContext();
// Create a model to pass to the Page JavaScript template. The
// template recognizes the following Velocity variables:
// $context, $path, $selector and $target
Map<String, Object> jsModel = ClickUtils.createTemplateModel(this, context);