Workaround for named nested functions.

Nested functions inside map/reduce have also stripped off their function names
for no apparent reason. If I'd like to do recursion, however, a named function
would certainly be nice. Provided that we all stick to the same indentation,
i.e. place function map(doc) always at the beginning of the line, everyone
should be happy.