Fix initialization of log4js