not modular MVC application ---lots of global in window object