Implementing pipes in Javascript using psudo operator overloading