support angular 1.3 as well