fix: JS for time charts