some fixes for javascript object diagrams