better display of run time in index.html
fixed worker simulation code (had forgotten test code)