Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
It was raising an error about unnecessary nesting