While we could have shortened the function by using `return $(this).each(…);` instead of:

```js
var $elements = $(this);

return $elements.each(…);
```

I think the latter is clearer, and avoid the confusion between the first `$(this)` and the one in `.each(…)` argument.