To run the code, open index.html with Firefox.