converted youtube.js to funcjs arch