Updated Templates

I've updated the header and footer js templates to be more accurate and fix a bug