captionMouseLeave and captionMouseEnter looks similar except of value of `outlineWidth` style. We can use one handler for those functions and avoid code duplicating:
```javascript
var caption = $(event.target),
     outlineWidth = (event.type === 'mouseleave') ? 1 : 0,
     captionIndex = parseInt(caption.attr('data-index'), 10); 
     if (captionIndex === this.videoCaption.currentCaptionIndex) {
         caption.css('outlineWidth', outlineWidth + 'px');
     }
```