Simple factory to use underscore function in AngularJS