Here's a great article about extending JavaScript to allow functional programming - very interesting:
http://www.zoode.org/index.php?m=200310#55