https://www.javasavvy.com/angularjs-custom-filter-example/