A simple JS function that can recursively traverse and manipulate nested objects.