make paths relative
use absolute paths after introduction of base tag