template occurs after document.ready event just in case