To use this as a test file, you need to run it in a local server. python -m http.server --port 8889 should work.