JavaScript MVC centered around requests