use JSON.stringify instead to support chrome and safari

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/uneval breaks chrome and safari