Updated paths in functions to include head and header correctly. replace TEMP variable with function to include scripts and stylesheets correctly.