Allows to manipulate pseudo selectors using JS
document.styleSheets[0].addRule('.package-tile-container:nth-child('+index+')::after', 'background-image: url("'+$(this).attr('data-map')+'") !important;');