Javascript library I was writing circa 2004-2005