javascript MVC