Fixing reverse proxy rewrite of HTML (custom javascript obviously not supported), fixes #308