Get Min Value Of Array Javascript Push Function In Stack