Update `driver.js` to fit with the new JSON encoding of sum types

Update `driver.js` to fit with the JSON encoding of sum types that `Data.Aeson.genericToJSON` use. Thus really fixing #71.