var baseFresh = (function(){ 'use strict' var template = getTemplate(); return newFresh; function newFresh(d, t){ return new Fresh(d, t); } function Fresh(d, t){ var errs = getErrors(d), e = getElementFromString(render(template, { "errors" : errs })); t.appendChild(e); this.element = e; } function Error(u, t){ this.url = u; this.text = t; this.last = false; } function getTemplate(){ var errAnch = '{{ text }}', err = '{{# errors }}' + errAnch + '{{^ last }} and {{/ last }}{{/ errors }}', h = '