register keys and callbacks for history.js