Add window onLoad handler.