outsource video manipulating functions to video.js