Set window.onload to a variable. Also add parens to initialize