Add "classed" API on jquery.dialog.js