def get_js_reset_function(self, values_to_set, functions_to_reset, reset_function_name='reset'):
        '''

        :param functions_to_reset: List[str]
        :param values_to_set: List[str]
        :param reset_function_name: str, default = rest
        :return: str
        '''
        return ('function ' + reset_function_name + '() {'
                + "document.querySelectorAll('.scattertext').forEach(element=>element.innerHTML=null);\n"
                + "document.querySelectorAll('#d3-div-1-corpus-stats').forEach(element=>element.innerHTML=null);\n"
                + ' '.join([value + ' = ' + function_name + '();'
                            for value, function_name
                            in zip(values_to_set, functions_to_reset)])
                + '}')


        :param functions_to_reset: List[str]
        :param values_to_set: List[str]
        :param reset_function_name: str, default = rest
        :return: str
        
scattertext/viz/ScatterplotStructure.py