Add dialog module for js confirm boxes.

Add a JS module to allow easy creation of JS dialog boxes.