How to convert a JSON string into an Object in JavaScript