I use bootstrap and have a simple layout including a button. I tried the code solution from here but it is not working. This is my code, it is not even showing 'test' after clicking the search button.
    <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Die drei oberen meta tags *müssen* zuerst im Head-Tag angegeben werden; alle anderen Tags können anschließend eingefügt werden -->
  <title>Search</title>
  <!-- Bootstrap -->
  <link href="css/bootstrap.min.css" rel="stylesheet">
  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
      <![endif]-->
    </head>
    <body>
    <div class="container-fluid">
      <h1>Welcome!</h1>
    </br>
    <button id="search" type="button" class="btn btn-primary">Suchen</button>
    <p><br/></p>
    <p id="output"></p>
    </div>
    <script type="text/javascript">
      $('#search').on('click', function (e) {
        document.getElementById('#output').innerHTML = "test";
        var EventSearch = require("facebook-events-by-location-core");
        var es = new EventSearch({
          "lat": 40.710803,
          "lng": -73.964040
        });
        es.search().then(function (events) {
          console.log(JSON.stringify(events));
          document.getElementById('output').innerHTML = JSON.stringify(events);
        }).catch(function (error) {
          console.error(JSON.stringify(error));
        }); 
      })
    </script>
    <!-- jQuery (notwendig für Bootstraps JavaScript plugins) -->
    <script src="js/jquery-3.2.1.min"></script>
    <!-- Alle kompilierten plugins einbeziehen -->
    <script src="js/bootstrap.min.js"></script>
  </body>
  </html>
 
     
     
    