Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Add `{}` around if block and make move the `this.ui.form.hide()` to its own line