This `div` needed to be inside the if statement. I opened a new pull request with this change (#149).