update ad.js window onload