      var removed = [];

                    if(clean){
                        var all_hrefs = new Array(0).concat(_PRE_FILES, _POST_FILES);
                        for (var i = 0; i < all_hrefs.length; i++) {
                            var ss = all_hrefs[i];
                            if (ss.endsWith(".js")) {
                                removed = removed.concat(Array.from(document.querySelectorAll('script[src$="' + ss + '"]')).map(function (node) {return Promise.resolve(node.remove());}));
        