updated doc js to add a "view" button; further work on the filling in the schema