Added JS logging.