Replaced all jQuery with AngularJS controller and service