Find Smallest Integer In Array Javascript Length Of Line