Find Smallest Number In Array Javascript Methods And Functions