Wrapped entire application in an anonymous function to prevent variables from being available in the global environment.
Wrapped entire program in an anonymous function to keep variables in local scope. Created a display next function to replace duplicated code in the click handlers.