Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
I think this should check for `undefined`