Refactor. More OOP.

Replace array notation with object notation.
Replace anonymous functions with normal functions.
Apply 'Chapter 1' of 'JavaScript Web Applications'.
Introduce static classes.