fix and extract ad.js