function queueDraw() {
  if (drawTimeout) clearTimeout(drawTimeout);
  drawTimeout = setTimeout(function() {
    drawTimeout = undefined;
    nextSidebar();
    draw();
  }, 60000 - (Date.now() % 60000));
}
// schedule a draw for the next minute
schedule a draw for the next minute
schedule a draw for the next minute
function queueDraw() {
  if (drawTimeout) clearTimeout(drawTimeout);
  drawTimeout = setTimeout(function() {
    drawTimeout = undefined;
    nextSidebar();
    draw();
  }, 60000 - (Date.now() % 60000));
}
function queueDraw ( ) { if ( drawTimeout ) clearTimeout ( drawTimeout ) ; drawTimeout = setTimeout ( function ( ) { drawTimeout = undefined ; nextSidebar ( ) ; draw ( ) ; } , 60000 - ( Date . now ( ) % 60000 ) ) ; }
schedule a draw for the next minute
schedule a draw for the next minute