use onload instead of events: load: