[update] make dialog, a direct child of 'body'
[update] destroy method call whipes out the entire dialog from DOM rather than reverts it to original state.
[update] minimize jQuery, maximize javascript