semicolon, check for event handlers
make the JS more idyomatic
switch cases need breaks
initial sendEdits method and real clone of the document