added some client code with angularjs as an example