I think you can just use a var to replace parseInt(target.dataset.rating) then you won't get lines like this.