This patch adds support to other ways to apply a
template, not only using jQuery .html() method.

Have been added two additional functions,
renderAppend, that calls .append() method,
and renderPrepend, that calls prepend method.