add build, split $.fn.dialog out