Attach the body onload handler via JS listeners