Note the use of `data('key')` versus the previous `attr('data-key')`. There are a few advantages to using the correct function, and the top answer on http://stackoverflow.com/questions/7261619/jquery-data-vs-attr sums it nicely.