Added client-side includes

Added a JavaScript HTML includes implementation to consolidate
website-wide layout changes. Also cleared up some code.