Add angular1.3 compatibility