You can actually just use `Math.max.apply()` instead of sorting, reversing, and checking the first item.