Added directives for header/footer
Added comments
Added the use of template url in directives.js