Create functionObject and refactor code to dynamically update each function on the page
Prettify variable declarations
Separate generic functionality from more program-specific functionality