using html5 data attributes to reduce in-page js and lighten template