Fix paths to various resources so that everything works from static files not at the root of the webserver