Make demo more standalone

Dependency on a headerElement existing is removed.