Use JSON.generate to properly quote JS string
Merge pull request #130 from ixti/patch-1

Use JSON.generate to properly quote JS string