util: use application/json instead of text/javascript for JSON response