You're running into the same origin policy, which only allows AJAX calls from a page to be made to the same host and port, using the same protocol. To get around this, you can run a web server in the directory you're working in using Python:
$ python -m SimpleHTTPServer 8080
You can now access your page at http://localhost:8080
in your web browser, and the AJAX call should now work.