Generate strings of Gremlin-Groovy with JavaScript