wrap jquery method in angular, bind to $scope variable