Add basePath option for when base is dynamically assigned
use it to strip off a beginning portion of a url