Removing absolute url from scripts