How to find max number in array in the Java Script