#43 Basic restructuring, log.js