How to add Pause button for Scrollable list

Currently, you can enable next, prev and indicator buttons in the Scrollable list with friendly settings in the View.
To add the pause button, please add this code to Custom JS field in Content Views >> Settings page:

/* Add pause button for scrollable list */
$('.left.carousel-control').after('<a class="pause carousel-control"><span class="glyphicon glyphicon-pause"></span></a>');
    var $carousel = $(this).closest('[data-ride="cvcarousel"]'), $button = $(this).find('span');
    } else {

Thank you,