support for angular 1.3, fixed #42