Added some Javascript logging.