Updated to new angular 1.2.4