Fixing reverse proxy rewrite of HTML (custom javascript obviously not supported)