add and use log.js