add log.js to index