It's somewhat confusing that there's both a class and an id called `toggle-history-button`. Maybe the span could be `#toggle-history-container`?
Also, some linebreaks in here would make for easier reading.