Got inspired by https://github.com/mdo/code-guide to clean up my syntax. Also found that there were things that I could simplify and clean up, such as the page headers.