Detect and Refactor JavaScript Copy-Paste Code