used array notation for js fields
moved canUndo/Redo up to js fields section
put event instance in alphabetical order
moved variable declaration inside test call
fixed closing bracket indentation