execute onload handler if exists