get/set JavaScript objects properties in a dot notation format