fix js bug for logging stuff