undo change for js