the DSL example is equivalent to the JavaScript one