Javascript Assign Variable Without Reference