*added in a regex url replacer so that local files get their url updated with the new extension type and a relative path