Added external_links js func