Change javascript to remove secondary directions and keep just a link