Added onLoad event handling to the example