Format JSON data for use within JavaScript.