Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
I think this nesting is unnecessary, just use

```javascript
else if (xType === 'datetime') {
    x = parseDate(x);
}
```