removed quit() in JsonResponseWriter, renamed some vars