added console.log to js