Fixed client to work with the standard YouTube player.

This is probably some of the hackiest code I've ever written.