add onload event listener - update readme files for examples