Simple JavaScript logger