code: function respOk (response, data, type) {
      if (type) {
          headers = {'Content-Type': type};
      }
      response.writeHead(200, headers);
      if (data) {
          response.write(data, 'utf-8');
      }
      response.end();
  }
docs: typical response helper