This example is only going to work if it's on the internet or on a local server! To run a local server, run "terminal" or "command prompt" and run the command python -m http.server
or python -m SimpleHTTPServer
(whichever one works, really, and you might even need to install Python). Then visit http://localhost:8000 and you'll be all set.