What about splitting the line 1277 in two and have something like this:

    var $mapDetailsSummary = $('<details class="wet-boew-geomap-detail"><summary>' + _pe.dic.get('%geo-accessibilizetitle') + '</summary><p>' + _pe.dic.get('%geo-accessibilize') + '</p></details>');
    $mapDiv.before($mapDetailsSummary)
    _pe.polyfills.enhance('detailssummary', $mapDetailsSummary);