added logger.js