<!DOCTYPE html>
<html>
  <head>
    <title><%= musician.name %> - Musician Profile</title>
  </head>
  <body>
    <img src="/img/<%= musician.thumbnail %>" alt="<%= musician.name %>">
    <h1><%= musician.name %></h1>
    <p><strong>Genre:</strong> <%= musician.genre %></p>
    <p><strong>Instrument:</strong> <%= musician.instrument %></p>
    <p><strong>Location:</strong> <%= musician.location %></p>
    <p><strong>Bio:</strong> <%= musician.bio %></p>
   
   <iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<%= musician.soundcloud %>&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe> 
   
	<% if (userLoggedIn && username === musician.name) { %>
    <a href="/profile/<%= musician.id %>/edit">Edit profile</a>



  
  
    <div id="edit-profile-modal" class="modal">
      <div class="modal-content">
        <span class="close">&times;</span>
        <h2>Edit Profile</h2>
        <form action="/profile/<%= musician.id %>/edit" method="POST" enctype="multipart/form-data">
          <div>
            <label for="name">Name:</label>
            <input type="text" id="name" name="name" value="<%= musician.name %>">
          </div>
          <div>
            <label for="genre">Genre:</label>
            <input type="text" id="genre" name="genre" value="<%= musician.genre %>">
          </div>
          <div>
            <label for="instrument">Instrument:</label>
            <input type="text" id="instrument" name="instrument" value="<%= musician.instrument %>">
          </div>
          <div>
            <label for="location">Location:</label>
            <input type="text" id="location" name="location" value="<%= musician.location %>">
          </div>
          <div>
            <label for="bio">Bio:</label>
            <textarea id="bio" name="bio"><%= musician.bio %></textarea>
          </div>
          
		  <div>
<label for="soundcloud">SoundCloud:</label>
<div id="music-fields">
<% if (musician.soundcloud) { %>
<% if (Array.isArray(musician.soundcloud)) 
{ musician.soundcloud.forEach(function(url) { %>


<div>
<input type="text" name=“soundcloud[]" value="<%= url %>">
<button type="button" class="delete-music-button">×</button>
</div>
<% }); %>
<% } %>
<div>
<input type="text" name="soundcloud[]" placeholder="SoundCloud track URL">
<button type="button” class=“add-music-button">Add Music</button>
</div>
</div>
</div>
		  
          <div>
            <label for="thumbnail">Thumbnail:</label>
            <input type="file" id="thumbnail" name="thumbnail">
          </div>
		  
          <button type="submit">Save</button>
        </form>
      </div>
    </div>
<% } %>
    <script>
      const modal = document.getElementById("edit-profile-modal");
      const btn = document.getElementsByTagName("a")[0];
      const span = document.getElementsByClassName("close")[0];

      btn.onclick = function() {
        modal.style.display = "block";
      }

      span.onclick = function() {
        modal.style.display = "none";
      }

      window.onclick = function(event) {
        if (event.target == modal) {
          modal.style.display = "none";
        }
      }
	  
	  const musicFields = document.getElementById("music-fields");
const addMusicButton = document.querySelector(".add-music-button");

addMusicButton.addEventListener("click", (event) => {
event.preventDefault();
const musicField = document.createElement("div");
musicField.innerHTML = '<br/> <input type="text" name="soundcloud[]" placeholder="SoundCloud track URL"><br/> <button type="button" class="delete-music-button">&times;</button><br/>';
musicFields.insertBefore(musicField, addMusicButton.parentNode);
});

musicFields.addEventListener("click", (event) => {
if (event.target.classList.contains(“delete-music-button”)) {
event.preventDefault();
event.target.parentNode.remove();
}
});
    </script>
  </body>
</html>

ошибка:

SyntaxError: Unexpected token 'catch' in C:\Users\Ilya\Downloads\my-musician-network\views\profile.ejs while compiling ejs