Dialog: initialize the JS engine on construction
Dialog: convert JS results to String properly
Dialog: continue dialog at the first unfilled field