I’ll update my answer if you update your question, but as it stands you have no element with the id “equals” so you’re setting up a click handler on nothing.
I added a button with the ID of “equals” to this demo and things seem to work fine.
<button id="equals">click me</button>