access origin and body onload