Get Minimum Value From Array Javascript Concat Not Working