add console.log js snippet