Put out js for diagram. (#22)