Place cheatsheet in the body when $rootElement is document
issue #8: adding tests