MVC In Javascript