Sorry if this is actual duplicate but I haven't managed to find answer for my problem.
I load the script with jQuery's $.getScript. But it causes the following error:
Resource interpreted as script but transferred with MIME type text/html.
The problem appears only in Safari under Mac OS
If to look on headers received from the server, they contain