Fixed CTPP2 not working

* Fixed templates
* Changed behavior of getHtml() to use higher level VM API