implemented function 'escapeHtml' in 'repeated_words.js' file