Fix example code

JSON.pretty_generate returns JSON which isn't valid Ruby and can't be
used to pass locals into a partial. This commit adds a gsub to generate
correct Ruby hashes using the `"key" => value` syntax.
Merge pull request #8 from alphagov/fix-example-code

Fix example code