Fixes relative links in script tags