added javascript console.log() snippet