add compatibility for angular#1.3.x
Merge pull request #104 from naeramarth7/master

add compatibility for angular#1.3.x