Using onloadend instead of onload, because all the cool kids are doing it