From a first glance, it's caused by the original
variable being in the local scope of the click function listener you created.
The quickest solution is to remove highlighted:
var original = $(this).html();
...and somewhere on top of everything, set original
as a global variable by:
Lastly, I'm surprised $('.cancelButton').click(
works. I should have suggested to use live() method instead.
Hope that helps.