Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Combine this initialization with the declaration on line above