updated for angular 1.3, quick check and everything looks good