write commas at the end of lines
define draw_slice outside of loop
add new lines at the end of files
rename Raphael instance to R
add wires