Javascript - get data attribute

<span id="hello" data-hello="hello world"></span>
var data = document.getElementById('hello').getAttribute('data-hello');