Javascript Copy Array Elements To Another Array