Boilerplate for a better-dom extension