Testing Javascript MVC