JS codecamp in Groovy