Short answer: NO
Resource interpreted as Script but transferred with MIME type text/html: "http://127.0.0.1:2372/blockpage?id=36"
Javascript has no control over this error message as when the tag is constructed and append to the body, the js functionality is over.
Now the browser comes across this tag and makes the http request. As it finds that the link must end with .js extension and you have just provided a domain name, it gives mime error.