This is a working example for a portlet but it should be the same:
Copy code
var p = context.portlet;
var script = runtime.getCurrentScript();
p.title = script.getParameter({"name": "custscript_sa_totalmonthly_title"});
p.clientScriptModulePath = "./sa-cl-TotalMonthly.js";