Fix image and javascript URLs