A js log utility