Made render() and makeDom() independent outside of the constructor.