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.
Merge pull request #153 from Saturate/master

Make getMetaData return valid JSON