Example MVC pattern for Ajax