Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
See comment above about `for ... in` loops and change this so that `i` is the index of items in the `toks` array.