code: function(resp) {
    if (resp.name) {
      resp.details = "Speaks: " + resp.locale + ", Gender: " + resp.gender;
    }
    page.emit('profile', resp);
  }
docs: onProfile is called by the script included by importScripts above.