replace hard-coded paths with single BASE_URL constant