Some more JS fixes for nbviewer
a rudimentary XML parser