I am trying to transfer all the JavaScript to a separate js file and then adding that js file to the html like the usual practice. But console shows the following error -