Pass undo message to JavaScript

Bug: 64257
Change-Id: I5369deaad5304b12c258071e31b01b0b6c752846
Merge "Pass undo message to JavaScript"