Javascript implementation of the MVC design pattern.