use addEventListener instead of window.onload to prevent conflict on host website.