small handler fixes, 

Should fix #388 JSDialogHandlers fails in suppressing default dialogs even if you tell it to

And a bit of minor noise and trouble introduced in the #379 PR pile