     e.stopPropagation()

          if(confirm('Are you sure you want to revert the package "' +el.name.value+ '" to version "' +el.version.value+ '"')) {
            el.submit()
          }
        })
      })

      var ex = document.querySelector('.notification .delete')
      if(ex) {
        ex.addEventListener('click', function() {
          var el = document.querySelector('.notification')
          el.parentElement.removeChild(el)
        })
      }
    })
  </script>
</body>
</html>