new js to detect external links