using correct element function for S3JsCompressor