Hand coded exercise in MVC Javascript.