Find Minimum In Array Javascript Methods