Javascript Copy Array Without Reference