This seems to be a well-known problem. Luckily the solution is rather simple. All that’s needed is to load the script from a local web server. Rather than install and configure Apache or similar, Python quickly comes to the rescue. Running
python -m SimpleHTTPServer
will start a local web server running on port 8000, with the document root being the current working directory.