A fig (http://fig.sh) implementation in pure javascript.