Remove hard-coded state names from javascript.

And push them into the API, where they'll someday not be hard-coded.