JS: documentation for reduceContext functions.