undo js change