function lalka() {
var stickerArray = Array.from( document.querySelectorAll('.sticker') );
if ( stickerArray.length ) {
var words = ['Wear', 'Unscratched'];
stickerArray.forEach( function (sticker) {
var stickerTitle = sticker.getAttribute('title');
words.map(function(word) {
if(word === stickerTitle) {
}
});
var arr = sticker.title.split('\n').filter(str=>{return str.length > 0})
var n = arr.find(e => -1 != e.split('').indexOf('e'))
console.log(n);
});
}
}
setInterval(lalka, 5000);