Get Min Value From Array Javascript