fix testcode
add export-dscript button
refactor html