Added some helpful logging.
Added the log4js dep.