California lawmakers are trying to regulate AI before it's too late. Here's how