Use data attributes instead of inline javascript