moved some parsing functions outside of the pages, leaving minimal code remaining.
Removed the document.ready that was causing a continuous GET request when a page was loaded inside of another.
Added routing for pages in external file for central changes. Still don't like the switch, but it will do for now.