Working pipe operator today in pure JavaScript