deleting useless absolute url from js