JavaScript Objects: Example of an Incorrect Way to Get Values