Fix dynamic-totals demo by trimming whitespace from template content before passing to jQuery constructor