Update attr to data

You can use .data() func instead of attr to manage all data-* attr in DOM