Add radix to parseInt
Use .data() instead of .attr('data-')

Use .data() instead of .attr('data-')

Use .data() instead of .attr('data-')