Javascript Max Value In Array Of Strings Matlab