Added relative URL replacement system back into focusOut function