Make getMetaData return valid JSON

The getMetaData function did not return valid JSON, if you ran the
returned string with `JSON.parse()` it would fail. Valid JSON uses double
quotes.