I have no experience with AdSense, but isn't it possible to call the js function by onLoad? (after the page got loaded)