Simple JavaScript logger.