Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
See line above about unnecessary nesting. Also, what is being ignored here?