FoldCalculator also works for a JavaScript test case.