Play! Scala code demonstrating folding left on a model that is using imperative JSON to create a JavaScript array