Simple logging utility in JS.