updated log.js in the branch