Use window.onload as a hack for now