Seek-Youtube is a project mainly written in JavaScript, it's free.
A small js wrapper for the Gdata Youtube api