Update README.md

The example checked the `language` attribute. Changed it to `type`.