title: SyntaxError: missing ) after argument list can't seem to find possible solution
body: <p>What is the issue, Where did I go wrong? This is the code for index.ejs i made minor changes to my previous old_index.ejs. i have been struggling with this issue and the backend does have await function for calling aleph-js (aleph.im) so i don't think it's any issue about async.</p>
  <pre><code>**strong text**&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;title&gt;Document&lt;/title&gt;
  
      &lt;script src=&quot;https://code.jquery.com/jquery-3.2.1.slim.min.js&quot;
          integrity=&quot;sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN&quot;
          crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js&quot;
          integrity=&quot;sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q&quot;
          crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js&quot;
          integrity=&quot;sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl&quot;
          crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
      &lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css&quot;
          integrity=&quot;sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm&quot; crossorigin=&quot;anonymous&quot;&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div class=&quot;container-fluid&quot;&gt;
          &lt;div class=&quot;row&quot;&gt;
              &lt;div class=&quot;col-3 rooms-sidebar&quot;&gt;
                  &lt;div class=&quot;card no-outline&quot;&gt;
                      &lt;div class=&quot;card-body&quot;&gt;
                          &lt;small&gt;Logged in as&lt;/small&gt;&lt;br&gt;
                          &lt;b&gt;
                              hook this up later&lt;br&gt;
                          &lt;/b&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;hr&gt;
                  &lt;hr&gt;
                  &lt;div class=&quot;card no-outline mb-2 room-card&quot;&gt;
                      &lt;div class=&quot;card-body&quot;&gt;
                          &lt;span class='name'&gt;
                              Chat
                          &lt;/span&gt;&lt;br&gt;
                          &lt;span class='member-count'&gt;
                              &lt;small&gt;
                                  99 Members
                              &lt;/small&gt;
                          &lt;/span&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
              &lt;div class=&quot;col-9&quot;&gt;
                  &lt;div class=&quot;chat-room&quot;&gt;
                      &lt;nav class=&quot;navbar navbar-light&quot;&gt;
                          &lt;span class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;
                              &lt;b&gt;
                                  Chat
                              &lt;/b&gt;
                          &lt;/span&gt;
                          &lt;small&gt;
                              99 Members
                          &lt;/small&gt;
                      &lt;/nav&gt;
                      &lt;div id=&quot;messages&quot;&gt;
                          &lt;% posts.forEach((post)=&gt; { %&gt;
                              &lt;% var parsed_item=JSON.parse(post.item_content) %&gt;
                              &lt;div class=&quot;message mb-2&quot;&gt;
                                  &lt;div class=&quot;content-container&quot;&gt;
                                      &lt;div class=&quot;content&quot;&gt;
                                          &lt;%= parsed_item.content.body %&gt;
                                      &lt;/div&gt;
                                      &lt;div class=&quot;author&quot;&gt;
                                          &lt;%= parsed_item.address %&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;% }) %&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;chat-box&quot;&gt;
                          &lt;form action=&quot;/messages&quot; method=&quot;post&quot; id='message-form'&gt;
                              &lt;div class=&quot;input-group&quot;&gt;
                                  &lt;input type='text' name=&quot;message&quot; id=&quot;message&quot; cols=&quot;30&quot; rows=&quot;10&quot; class=&quot;form-control&quot;&gt;
                                  &lt;div class=&quot;input-group-append&quot;&gt;&lt;/div&gt;
                                  &lt;input type=&quot;submit&quot; value=&quot;Post Message&quot; class=&quot;btn btn-primary&quot;&gt;
                              &lt;/div&gt;
                          &lt;/form&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;%= posts %&gt;
          &lt;script type='text/javascript'&gt;
              $(document).ready(() =&gt; {
  
                  const socket = new WebSocket('wss://api2.aleph.im/api/ws0/messages?msgType=POST&amp;contentType=chat')
                  socket.onmessage = (e) =&gt; {
                      let message = JSON.parse(e.data)
                      console.log(message)
                      let content = message.content.content.body;
                      $('#messages-list').prepend(`&lt;li&gt;${content}&lt;/li&gt;`)
                  }
                  $('#message-form').submit((e) =&gt; {
                      e.preventDefault();
                      $.post('/messages', $('#message-form').serialize())
                      $('#message-form textarea').val('')
                  })
              })
          &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>&lt;%= 'me' if message.user == current_user %&gt;</p>
  <p><a href="https://i.stack.imgur.com/1BFKY.png" rel="nofollow noreferrer">Refer The Image</a></p>