added js for external links
added js for external links