use data attributes instead of html text for better cross-browser support