MVC framework, client-side JavaScript