nodejs handbook example
singleton pattern