JS Objects intermediate assignment