first working version with angularjs client