make adverts test use ie8 compatible javascript

indexOf isnt' supported in ie8, so ie8 users were getting errors and not seeing any adverts

sorry @ironsidevsquincy ! here's the fix =)