Short test of a JavaScript MVC pattern