Created by: lipis
Instead of accessing the data-.. attributes with the .attr() everywhere changed to use the .data()
data-..
.attr()
.data()