let attrVal = title[0].getAttribute('title')
let titles = Array.from(document.getElementsByClassName('category-item'), x => x.getAttribute('title'));