apache heroku javascript nginx php

SyntaxError: expected expression, got ‘

When I click on the index.html file on my local computer, the page is correctly loaded in my browser. However, when I open the site on herokuapp, I get “SyntaxError: expected expression, got ‘<‘” errors for all of the .js files I link to in the html.

error screenshot

I would appreciate any help on how to fix this.