Template cleanup

removes unneeded file references from the website header (ie theme colors) and replaces some JS logic