Javascript Set Array To Another Array