Correct the dynamic variables example

This is a simple fix to the README to make it clear the function should return an object with the expected properties.