Changing JSON inside Jade template

I am new to using Jade, and this is my goal: Imagine I have passed in a JSON object with some key-value pair where the value is 1. That value is displayed in some <div> somewhere. When the user clicks a button, that number receives a +=1 and now the number 2 is displayed instead of 1. Is this possible without reloading the page?

I have read that Jade compiles to static HTML which would lead me to believe that this is not possible. But I have also seen examples of Jade code that includes javascript right in the HTML, so that would lead me to believe it is possible. I would love a straight answer if someone knows. If this is not possible, an extremely helpful answer would be how I could do such a thing.

If it's important, I'm using nodeJS and Express as my platform and framework. Thanks