nikgraf/jquery-global to AngularJS