JS chart bug and CSS