Yeah, I missed to incorporate that. Updated now.
Note: For reading the values of these attributes in JavaScript, you could use getAttribute() with their full HTML name(i.e, data-custom-attr) but, the standard defines a simpler way: using a dataset property.
Thanks for pointing out!