added js console.log snippet