Update prototype pattern to use Object.create when available.