Any JavaScript function named pageLoad() will automatically wireup as an Application.Load handler (basically, the client-side version of Page_Load).
Here's a sample code snippet that shows the needed approach.
pageLoad is a shortcut for the Sys.Application.load
event. For details on the matter please refer to the
following ASP.NET article.