Creating a simple custom pipe in Angular