remove need for body.onload
update lib