Implementation of jx within the context of nodejs, design patterns, and a couchdb handler