Anomalies, branes, and currents