javascript: switch to Data.Text for code generation