Fix list of objects example in README.md

I suppose that it should be

    foo = [{name: 'foo'}, {name: 'bar'}];

instead of

    foo = [{name: 'foo', name: 'bar'}];