Configure base URL with javascript in place of constant.