How to covert a JavaScript Object into a JSON string