client implementation using angularjs