migrating to angular 1.2.7