Add demo code for registering multiple function of window.onload