You might need to run this on a local server for it to work, since some browsers like Chrome disables file HTTP requests.