Add calculator in dialog

I add a calculator using js-calc in a dialog box.