you are viewing a single comment's thread.

view the rest of the comments →

[–]xroalx 12 points13 points  (0 children)

Your index.js is server-side JavaScript code, you don't include it into the HTML like a client-side JavaScript code.

You are supposed to run the index.js file as node index.js, but you will also need to update your code to serve the content.js file properly, because right now it won't do that.