Binding CSS and JavaScript with HTML data-attributes