Moves the time indicator code to TimeGrid.js