forked for latest AngularJS versions