Get into the habit of running a local server, for simple projects like this, running the Python Simple Server is the easiest. Using relative paths to assets will be an issue in most production environments.