javascript console.log check