JS debug mode only for dev environments