TarHeelPlayer is a project mainly written in JavaScript, it's free.
Synchronize TarHeelReader.org books with music
This page and associated javascript allows synchronizing TarHeelReader books with music using SoundManager2 for mp3 playback.