js2shapefile looks like it should be able to do this, although it may require you to write or use a separate KML parser. See this code for example usage with Google Maps.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago
Get the weekly newsletter! In it, you'll get:
see an example newsletter