got identical behavior on commandline run and run through couchdb view while using the common js modules through requires