js fixed for charts