renamed template appendToDOM() to render()