working with angular < AngularJS v1.3.0-beta.10