Get Subarray From Array Javascript