Js Get Subarray From Array To Number