snippet js: console log