Abstracted JavaScriptFold vs. JavaScriptFoldOf[TYPE], and neither should be a case class because it's mutable.