changing to javascript diagrams
changes for TTC2014