some work on the js charts