fix external links in js