angularjs working properly