fix data-attribute binding

I'm not sure what I was thinking. This reverts an earlier change that didn't produce the desired results in server-side cheerio or client-side jquery.