undo js redirect