Javascript Get Maximum Value In Array Of Hope