updated <base> url js logic for prod