e.g. I want to call an arbitrary Javascript function when "q" is pressed. We can expose another helper function (like `set_document_title`) for that.