Refactored the document head so that it was all being pulled from the application layout.