Fix active class sticking around after adding in a new element. Fixes #89.