Now compatible with angular 1.3.3