As @dandavis has said, "run it from http: not file".
I'm posting this as an answer for the sake of organization.
For starters: Running you project from http means having a http server (such as apache or a simple node http-server) and running your project via http://localhost.