Added JavaScript to deduplicate tool.