Yes. A better place to put the code that's adding and removing the class would be https://github.com/mozilla/popcorn.webmaker.org/blob/master/public/src/timeline/trackhandles.js.

That specifically is about those handles, whereas this code is a generic utility for setting up the dragging/dropping elements.