Extracting to json schema to to json type.js

This builds on top of #123.