use JS in createEnumerationTestScriptlet