If you haven't already tried jsFiddle you are missing out. This is one of the handiest little websites for playing with JavaScript code and trying things out. It's actually kind of addicting once you start fiddling. Anyhow, here's a little JavaScript I have been fiddling with. Max int in array, reverse linked list, cached fibonacci, and tiny pub / sub.
Making source code easier to understand