json-response: Clean up util.js.