Migrated to angular 1.2.6 and global app