Javascript Maximum Number In Array In Js For Loop