make javascript console output configurable per environment (so we can leave logs in, and hide them in prod)