Moved js into video.js