Moved window.onload to it's own javascript file