new.js modified added script for selecting multiple adverts