this works, because js puts each function declaration with a name at the top of each scope, so `connect` will be defined when we reach this return. this is done in some places in the nodejs code too.

… but your code works as well obviously :)