JavaScript Problem: Selectively Copying an Object