remove URL from JS; serve static html through Java