Use $( window ).load instead of window.onload.

Bug: 45976
Change-Id: I539ff776a0bb3894873721f8fedd4c7a893ba94c