trying angularjs simple functionality