Max Element In Array Javascript Documentation