a small javascript framework in MVC architecture