Update dom example to latest api