Update remove_duplicates.js

Removed unnecessary bloat.