Implements a lightweight modular "mvc" in javascript.