package as npm module; update for latest version of underscore and log4js