Test js filter/reduce/orderby