added options for dotJS templater and options.selfcontained to not include encodeHtml function prototype