I’ve been stuck in javascript hell for the last couple of weeks, and “Prototype”:http://prototype.conio.net/ has been a large part of keeping me sane. That people then write all sorts of extensions for it, including one for “using data structures to generate HTML”:http://www.arantius.com/article/dollar-e is just great.