Extended javascript helper method to select either header or footer location, and set Chart.js as deferred JS. TRAD-8