fix JS warnings
add progressbar
clean up comments, license