Add a javascript logger.