functional js tasks: blocking events loop, call, map using reduce