Return valid JSON

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