check for mraid in handleStdAds and refactored var names