fix the after render example to work with the new container argument.
Update d4 to the latest version.