added log.js