Transforme o código abaixo me funções javascript mais amigaveis e genericas, de forma que eu possa usar em qualquer lugar, apenas fazendo require depois de outros pacotes. Faça o deofuscate mas nunca remova nada do código existente e nem adicione grandes alterações. O intuito é obter um código mais legivel e organizado.

Segue abaixo:
```js
var mod_pagespeed_3rCCBBqKVS = "var slugifyCharMap=JSON.parse('{\"$\":\"dollar\",\"&\":\"and\",\"Ã€\":\"A\",\"Ã\":\"A\",\"Ã‚\":\"A\",\"Ãƒ\":\"A\",\"Ã„\":\"A\",\"Ã…\":\"A\",\"Ã†\":\"AE\",\"Ã‡\":\"C\",\"Ãˆ\":\"E\",\"Ã‰\":\"E\",\"ÃŠ\":\"E\",\"Ã‹\":\"E\",\"ÃŒ\":\"I\",\"Ã\":\"I\",\"ÃŽ\":\"I\",\"Ã\":\"I\",\"Ã\":\"D\",\"Ã‘\":\"N\",\"Ã’\":\"O\",\"Ã“\":\"O\",\"Ã”\":\"O\",\"Ã•\":\"O\",\"Ã–\":\"O\",\"Ã˜\":\"O\",\"Ã™\":\"U\",\"Ãš\":\"U\",\"Ã›\":\"U\",\"Ãœ\":\"U\",\"Ã\":\"Y\",\"Ãž\":\"TH\",\"ÃŸ\":\"ss\",\"Ã \":\"a\",\"Ã¡\":\"a\",\"Ã¢\":\"a\",\"Ã£\":\"a\",\"Ã¤\":\"a\",\"Ã¥\":\"a\",\"Ã¦\":\"ae\",\"Ã§\":\"c\",\"Ã¨\":\"e\",\"Ã©\":\"e\",\"Ãª\":\"e\",\"Ã«\":\"e\",\"Ã¬\":\"i\",\"Ã­\":\"i\",\"Ã®\":\"i\",\"Ã¯\":\"i\",\"Ã°\":\"d\",\"Ã±\":\"n\",\"Ã²\":\"o\",\"Ã³\":\"o\",\"Ã´\":\"o\",\"Ãµ\":\"o\",\"Ã¶\":\"o\",\"Ã¸\":\"o\",\"Ã¹\":\"u\",\"Ãº\":\"u\",\"Ã»\":\"u\",\"Ã¼\":\"u\",\"Ã½\":\"y\",\"Ã¾\":\"th\",\"Ã¿\":\"y\",\"Ä€\":\"A\",\"Ä\":\"a\",\"Ä‚\":\"A\",\"Äƒ\":\"a\",\"Ä„\":\"A\",\"Ä…\":\"a\",\"Ä†\":\"C\",\"Ä‡\":\"c\",\"ÄŒ\":\"C\",\"Ä\":\"c\",\"ÄŽ\":\"D\",\"Ä\":\"d\",\"Ä\":\"DJ\",\"Ä‘\":\"dj\",\"Ä’\":\"E\",\"Ä“\":\"e\",\"Ä–\":\"E\",\"Ä—\":\"e\",\"Ä˜\":\"e\",\"Ä™\":\"e\",\"Äš\":\"E\",\"Ä›\":\"e\",\"Äž\":\"G\",\"ÄŸ\":\"g\",\"Ä¢\":\"G\",\"Ä£\":\"g\",\"Ä¨\":\"I\",\"Ä©\":\"i\",\"Äª\":\"i\",\"Ä«\":\"i\",\"Ä®\":\"I\",\"Ä¯\":\"i\",\"Ä°\":\"I\",\"Ä±\":\"i\",\"Ä¶\":\"k\",\"Ä·\":\"k\",\"Ä»\":\"L\",\"Ä¼\":\"l\",\"Ä½\":\"L\",\"Ä¾\":\"l\",\"Å\":\"L\",\"Å‚\":\"l\",\"Åƒ\":\"N\",\"Å„\":\"n\",\"Å…\":\"N\",\"Å†\":\"n\",\"Å‡\":\"N\",\"Åˆ\":\"n\",\"Å\":\"O\",\"Å‘\":\"o\",\"Å’\":\"OE\",\"Å“\":\"oe\",\"Å”\":\"R\",\"Å•\":\"r\",\"Å˜\":\"R\",\"Å™\":\"r\",\"Åš\":\"S\",\"Å›\":\"s\",\"Åž\":\"S\",\"ÅŸ\":\"s\",\"Å \":\"S\",\"Å¡\":\"s\",\"Å¢\":\"T\",\"Å£\":\"t\",\"Å¤\":\"T\",\"Å¥\":\"t\",\"Å¨\":\"U\",\"Å©\":\"u\",\"Åª\":\"u\",\"Å«\":\"u\",\"Å®\":\"U\",\"Å¯\":\"u\",\"Å°\":\"U\",\"Å±\":\"u\",\"Å²\":\"U\",\"Å³\":\"u\",\"Å¹\":\"Z\",\"Åº\":\"z\",\"Å»\":\"Z\",\"Å¼\":\"z\",\"Å½\":\"Z\",\"Å¾\":\"z\",\"Æ’\":\"f\",\"Æ \":\"O\",\"Æ¡\":\"o\",\"Æ¯\":\"U\",\"Æ°\":\"u\",\"Çˆ\":\"LJ\",\"Ç‰\":\"lj\",\"Ç‹\":\"NJ\",\"ÇŒ\":\"nj\",\"È˜\":\"S\",\"È™\":\"s\",\"Èš\":\"T\",\"È›\":\"t\",\"Ëš\":\"o\",\"Î†\":\"A\",\"Îˆ\":\"E\",\"Î‰\":\"H\",\"ÎŠ\":\"I\",\"ÎŒ\":\"O\",\"ÎŽ\":\"Y\",\"Î\":\"W\",\"Î\":\"i\",\"Î‘\":\"A\",\"Î’\":\"B\",\"Î“\":\"G\",\"Î”\":\"D\",\"Î•\":\"E\",\"Î–\":\"Z\",\"Î—\":\"H\",\"Î˜\":\"8\",\"Î™\":\"I\",\"Îš\":\"K\",\"Î›\":\"L\",\"Îœ\":\"M\",\"Î\":\"N\",\"Îž\":\"3\",\"ÎŸ\":\"O\",\"Î \":\"P\",\"Î¡\":\"R\",\"Î£\":\"S\",\"Î¤\":\"T\",\"Î¥\":\"Y\",\"Î¦\":\"F\",\"Î§\":\"X\",\"Î¨\":\"PS\",\"Î©\":\"W\",\"Îª\":\"I\",\"Î«\":\"Y\",\"Î¬\":\"a\",\"Î­\":\"e\",\"Î®\":\"h\",\"Î¯\":\"i\",\"Î°\":\"y\",\"Î±\":\"a\",\"Î²\":\"b\",\"Î³\":\"g\",\"Î´\":\"d\",\"Îµ\":\"e\",\"Î¶\":\"z\",\"Î·\":\"h\",\"Î¸\":\"8\",\"Î¹\":\"i\",\"Îº\":\"k\",\"Î»\":\"l\",\"Î¼\":\"m\",\"Î½\":\"n\",\"Î¾\":\"3\",\"Î¿\":\"o\",\"Ï€\":\"p\",\"Ï\":\"r\",\"Ï‚\":\"s\",\"Ïƒ\":\"s\",\"Ï„\":\"t\",\"Ï…\":\"y\",\"Ï†\":\"f\",\"Ï‡\":\"x\",\"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\":\"sh\",\"Ñ‰\":\"sh\",\"ÑŠ\":\"u\",\"Ñ‹\":\"y\",\"ÑŒ\":\"\",\"Ñ\":\"e\",\"ÑŽ\":\"yu\",\"Ñ\":\"ya\",\"Ñ‘\":\"yo\",\"Ñ’\":\"dj\",\"Ñ”\":\"ye\",\"Ñ–\":\"i\",\"Ñ—\":\"yi\",\"Ñ˜\":\"j\",\"Ñ™\":\"lj\",\"Ñš\":\"nj\",\"Ñ›\":\"c\",\"ÑŸ\":\"dz\",\"Ò\":\"G\",\"Ò‘\":\"g\",\"à¸¿\":\"baht\",\"áƒ\":\"a\",\"áƒ‘\":\"b\",\"áƒ’\":\"g\",\"áƒ“\":\"d\",\"áƒ”\":\"e\",\"áƒ•\":\"v\",\"áƒ–\":\"z\",\"áƒ—\":\"t\",\"áƒ˜\":\"i\",\"áƒ™\":\"k\",\"áƒš\":\"l\",\"áƒ›\":\"m\",\"áƒœ\":\"n\",\"áƒ\":\"o\",\"áƒž\":\"p\",\"áƒŸ\":\"zh\",\"áƒ \":\"r\",\"áƒ¡\":\"s\",\"áƒ¢\":\"t\",\"áƒ£\":\"u\",\"áƒ¤\":\"f\",\"áƒ¥\":\"k\",\"áƒ¦\":\"gh\",\"áƒ§\":\"q\",\"áƒ¨\":\"sh\",\"áƒ©\":\"ch\",\"áƒª\":\"ts\",\"áƒ«\":\"dz\",\"áƒ¬\":\"ts\",\"áƒ­\":\"ch\",\"áƒ®\":\"kh\",\"áƒ¯\":\"j\",\"áƒ°\":\"h\",\"áºž\":\"SS\",\"áº \":\"A\",\"áº¡\":\"a\",\"áº¢\":\"A\",\"áº£\":\"a\",\"áº¤\":\"A\",\"áº¥\":\"a\",\"áº¦\":\"A\",\"áº§\":\"a\",\"áº¨\":\"A\",\"áº©\":\"a\",\"áºª\":\"A\",\"áº«\":\"a\",\"áº¬\":\"A\",\"áº­\":\"a\",\"áº®\":\"A\",\"áº¯\":\"a\",\"áº°\":\"A\",\"áº±\":\"a\",\"áº²\":\"A\",\"áº³\":\"a\",\"áº´\":\"A\",\"áºµ\":\"a\",\"áº¶\":\"A\",\"áº·\":\"a\",\"áº¸\":\"E\",\"áº¹\":\"e\",\"áºº\":\"E\",\"áº»\":\"e\",\"áº¼\":\"E\",\"áº½\":\"e\",\"áº¾\":\"E\",\"áº¿\":\"e\",\"á»€\":\"E\",\"á»\":\"e\",\"á»‚\":\"E\",\"á»ƒ\":\"e\",\"á»„\":\"E\",\"á»…\":\"e\",\"á»†\":\"E\",\"á»‡\":\"e\",\"á»ˆ\":\"I\",\"á»‰\":\"i\",\"á»Š\":\"I\",\"á»‹\":\"i\",\"á»Œ\":\"O\",\"á»\":\"o\",\"á»Ž\":\"O\",\"á»\":\"o\",\"á»\":\"O\",\"á»‘\":\"o\",\"á»’\":\"O\",\"á»“\":\"o\",\"á»”\":\"O\",\"á»•\":\"o\",\"á»–\":\"O\",\"á»—\":\"o\",\"á»˜\":\"O\",\"á»™\":\"o\",\"á»š\":\"O\",\"á»›\":\"o\",\"á»œ\":\"O\",\"á»\":\"o\",\"á»ž\":\"O\",\"á»Ÿ\":\"o\",\"á» \":\"O\",\"á»¡\":\"o\",\"á»¢\":\"O\",\"á»£\":\"o\",\"á»¤\":\"U\",\"á»¥\":\"u\",\"á»¦\":\"U\",\"á»§\":\"u\",\"á»¨\":\"U\",\"á»©\":\"u\",\"á»ª\":\"U\",\"á»«\":\"u\",\"á»¬\":\"U\",\"á»­\":\"u\",\"á»®\":\"U\",\"á»¯\":\"u\",\"á»°\":\"U\",\"á»±\":\"u\",\"á»²\":\"Y\",\"á»³\":\"y\",\"á»´\":\"Y\",\"á»µ\":\"y\",\"á»¶\":\"Y\",\"á»·\":\"y\",\"á»¸\":\"Y\",\"á»¹\":\"y\",\"â€˜\":\"\\'\",\"â€™\":\"\\'\",\"â€œ\":\"\\\\\\\"\",\"â€\":\"\\\\\\\"\",\"â€ \":\"+\",\"â€¢\":\"*\",\"â€¦\":\"...\",\"â‚ \":\"ecu\",\"â‚¢\":\"cruzeiro\",\"â‚£\":\"french franc\",\"â‚¤\":\"lira\",\"â‚¥\":\"mill\",\"â‚¦\":\"naira\",\"â‚§\":\"peseta\",\"â‚¨\":\"rupee\",\"â‚©\":\"won\",\"â‚ª\":\"new shequel\",\"â‚«\":\"dong\",\"â‚¬\":\"euro\",\"â‚­\":\"kip\",\"â‚®\":\"tugrik\",\"â‚¯\":\"drachma\",\"â‚°\":\"penny\",\"â‚±\":\"peso\",\"â‚²\":\"guarani\",\"â‚³\":\"austral\",\"â‚´\":\"hryvnia\",\"â‚µ\":\"cedi\",\"â‚¹\":\"indian rupee\",\"â‚½\":\"russian ruble\",\"â‚¿\":\"bitcoin\",\"â„ \":\"sm\",\"â„¢\":\"tm\",\"âˆ‚\":\"d\",\"âˆ†\":\"delta\",\"âˆ‘\":\"sum\",\"âˆž\":\"infinity\",\"â™¥\":\"love\",\"å…ƒ\":\"yuan\",\"å††\":\"yen\",\"ï·¼\":\"rial\"}')\nfunction slugify(string,options){options=(typeof options==='string')?{replacement:options}:options||{};var slug=string.split('').reduce(function(result,ch){return result+(slugifyCharMap[ch]||ch).replace(options.remove||/[^\\w\\s$*_+~.()'\"!\\-:@]/g,'')},'').trim().replace(/[-\\s]+/g,options.replacement||'-');return options.lower?slug.toLowerCase():slug}slugify.extend=function(customMap){for(var key in customMap){slugifyCharMap[key]=customMap[key]}};";

var mod_pagespeed_Dj9FWU7Yd$ = "function validateData(){$(\".form-control\").removeClass('field-error');$('.invalid-feedback').text('');var errors={};var $textInput=$(\"#input_text\");var inputText=$textInput.val();if(inputText.length===0){errors['input_text']='Input must be specified for generating slug';}if(false===$.isEmptyObject(errors)){displayFormErrors($(\"#generate_form\"),errors);return false;}return true;}function generateSlug(inputText,replacement,removeStopWords,removeNumbers){var charactersToRemove=/[#*|><_`%,;?+~=.()\\[\\]\\\\/'^\"!:@]/g;if(removeNumbers){charactersToRemove=/[#*|><_`%,;?+~=.()\\[\\]\\\\/'^\"!:@0-9]/g}var options={lower:true,remove:charactersToRemove,replacement:replacement};var stopWords=[\"a\",\"about\",\"above\",\"after\",\"again\",\"against\",\"all\",\"am\",\"an\",\"and\",\"any\",\"are\",\"as\",\"at\",\"be\",\"because\",\"been\",\"before\",\"being\",\"below\",\"between\",\"both\",\"but\",\"by\",\"could\",\"did\",\"do\",\"does\",\"doing\",\"down\",\"during\",\"each\",\"few\",\"for\",\"from\",\"further\",\"had\",\"has\",\"have\",\"having\",\"he\",\"he'd\",\"he'll\",\"he's\",\"her\",\"here\",\"here's\",\"hers\",\"herself\",\"him\",\"himself\",\"his\",\"how\",\"how's\",\"i\",\"i'd\",\"i'll\",\"i'm\",\"i've\",\"if\",\"in\",\"into\",\"is\",\"it\",\"it's\",\"its\",\"itself\",\"let's\",\"me\",\"more\",\"most\",\"my\",\"myself\",\"nor\",\"of\",\"on\",\"once\",\"only\",\"or\",\"other\",\"ought\",\"our\",\"ours\",\"ourselves\",\"out\",\"over\",\"own\",\"same\",\"she\",\"she'd\",\"she'll\",\"she's\",\"should\",\"so\",\"some\",\"such\",\"than\",\"that\",\"that's\",\"the\",\"their\",\"theirs\",\"them\",\"themselves\",\"then\",\"there\",\"there's\",\"these\",\"they\",\"they'd\",\"they'll\",\"they're\",\"they've\",\"this\",\"those\",\"through\",\"to\",\"too\",\"under\",\"until\",\"up\",\"very\",\"was\",\"we\",\"we'd\",\"we'll\",\"we're\",\"we've\",\"were\",\"what\",\"what's\",\"when\",\"when's\",\"where\",\"where's\",\"which\",\"while\",\"who\",\"who's\",\"whom\",\"why\",\"why's\",\"with\",\"would\",\"you\",\"you'd\",\"you'll\",\"you're\",\"you've\",\"your\",\"yours\",\"yourself\",\"yourselves\"];var slug=slugify(inputText,options);if(removeStopWords){var slugParts=slug.split(replacement);var filteredSlugParts=slugParts.filter(function(slugPart){return!stopWords.includes(slugPart);})\nslug=filteredSlugParts.join(replacement);}return slug}function setCustomerPreferredOptions(){if(localStorage.getItem('esse_slugify_slug_term_separator')){var slugTermSeparator=localStorage.getItem('esse_slugify_slug_term_separator')\nif(slugTermSeparator==='_'){$(\"#separate_with_underscore\").prop('checked',true);$(\"#separate_with_dash\").prop('checked',false);}else{$(\"#separate_with_dash\").prop('checked',true);$(\"#separate_with_underscore\").prop('checked',false);}}else{$(\"#separate_with_dash\").prop('checked',true);$(\"#separate_with_underscore\").prop('checked',false);}if(localStorage.getItem('esse_slugify_remove_stop_words')===\"true\"){$(\"#remove_stop_words\").prop('checked',true);}if(localStorage.getItem('esse_slugify_remove_numbers')===\"true\"){$(\"#remove_numbers\").prop('checked',true);}}function resetFormControlOptions(){$(\"#separate_with_dash\").prop('checked',true);$(\"#separate_with_underscore\").prop('checked',false);$(\"#remove_stop_words\").prop('checked',false);$(\"#remove_numbers\").prop('checked',false);localStorage.clear();}$(document).ready(function(){setCustomerPreferredOptions()})\nwindow.onload=function(){document.getElementById('input_text').onkeydown=preventEnterPressOnInput;document.getElementById('input_text').onkeyup=preventEnterPressOnInput;var $calculateBtn=document.getElementById(\"calculate_btn\");$calculateBtn.addEventListener('click',function(event){event.preventDefault();if(false===validateData()){return false;}var inputText=$(\"#input_text\").val();var slugTermSeparator=$(\"input[name='separator']:checked\").val()==='underscore'?'_':'-';var removeStopWords=$(\"#remove_stop_words\").prop('checked');var removeNumbers=$('#remove_numbers').prop('checked');$(\"#output_hash\").text(generateSlug(inputText,slugTermSeparator,removeStopWords,removeNumbers));$(\"#output_block\").removeClass('invisible');localStorage.setItem('esse_slugify_slug_term_separator',slugTermSeparator)\nlocalStorage.setItem('esse_slugify_remove_stop_words',removeStopWords)\nlocalStorage.setItem('esse_slugify_remove_numbers',removeNumbers)\ngtag('event','URL Slug generated');});document.getElementById(\"clear_btn\").addEventListener('click',clearInputValue);$(\"#reset_controls_btn\").click(function(){resetFormControlOptions();})\nvar clipboard1=new ClipboardJS('#output_hash',{text:function(trigger){return trigger.innerText;}});clipboard1.on('success',function(){copyCallback('output_hash');});var clipboard2=new ClipboardJS('#copy_btn');clipboard2.on('success',function(){copyCallback('output_hash');});};";

var mod_pagespeed_Zo0oQm1wUq = "function selectText(node){var range,selection;if(document.body.createTextRange){range=document.body.createTextRange();range.moveToElementText(node);range.select();}else if(window.getSelection){selection=window.getSelection();range=document.createRange();range.selectNodeContents(node);selection.removeAllRanges();selection.addRange(range);}else{console.warn(\"Could not select text in node: Unsupported browser.\");}}function displayFormErrors($form,errors){var error,$invalidField;for(var fieldName in errors){if(false===errors.hasOwnProperty(fieldName)){continue;}error=errors[fieldName];$invalidField=$form.find(\"#\"+fieldName);$invalidField.addClass('field-error');$invalidField.next('.invalid-feedback').text(error).show();}}function resetFormErrors($form){$form.find('input, textarea, select').removeClass('field-error');$form.find('.invalid-feedback').text('').hide();}function resetForm($form){resetFormErrors($form);$form.find('input, textarea').val('');}var preventEnterPressOnInput=function(event){if(event.defaultPrevented){return;}var key=event.key||event.keyCode;if(key==='Enter'||key===13){event.preventDefault();}};var copyCallback=function(targetElementId){var $outputHash=document.getElementById(targetElementId);selectText($outputHash);$outputHash.setAttribute('title','Copied');$($outputHash).tooltip('show');setTimeout(function(){$($outputHash).tooltip('dispose');},600);};var clearInputValue=function(event){event.preventDefault();$(\"#input_text\").val('');$(\"#output_block\").addClass('invisible');};function isValidUrl(str){var pattern=new RegExp('^(https?:\\\\/\\\\/)?'+'((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.)+[a-z]{2,}|'+'((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))'+'(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*'+'(\\\\?[;&a-z\\\\d%_.~+=-]*)?'+'(\\\\#[-a-z\\\\d_]*)?$','i');return!!pattern.test(str);}";
```