edit dialog

include jQuery
add old js