support for additional headers in javascript filter