javascript extractor