add base url variable for js