check if a link is external using jQuery or JavaScript. Open external links in a new tab, improve SEO with rel="nofollow", and enhance security with noopener