Graph.format.js ported to Smalltalk code

Thanks to Ryan Simmons:

https://groups.google.com/forum/?hl=ru&fromgroups=#!topic/amber-lang/jknBM3dT1uU