whitespace fixes and move logger.js to root dir