Reduce Function Array Javascript Documentation Generator