Update Page.register_extension example in docs