Worked on template.js

loadTemplateHooks
loadTemplate
implemented template module