Added external links functionality using JavaScript