jsobject map reduce