Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Add blank line above and below this if block