Fixed example objectHash function in the README

This function should return the hash. Otherwise it returns `undefined`, what changes the diff, but not in a way you expect.