changed js formatting of chart