Javascript Get Max Value From Array