Added a version that uses jQuery instead of Prototype.