add a progress bar
refactor draw_editor
add a basic progress bar
put the js in a separate file