use JS in createMandatoryTestScriptlet