updating document. ready function for external link handler