[%- JAVASCRIPT -%] var obj = new TheName('Bally'); stash.set( "objectName", obj.getName() ); [%- END -%] Hello, [% objectName %]