this is probably left over from the original test but we don't use onload. Just call main after it's defined.