//Function to check repetition, returns true if repetition exist function isRepeated(element) { for(var i=0;i