Update removeRepetition.js