revert changes to adverts.js