added a pipe to JS