Java Script for S3TextFilter, fix unit tests.