JS and SVG version of BlackBox