If you're operating on AJAX, and something is being updated that needs to be reflected on the page, then you should return it in the response from your AJAX request.
Using that Razor syntax is only going to update those values when loaded from the server, as you've discovered. There's no way client side to know that the value has changed server side without the two communicating.
If you don't want to partially reload the page, or return it in the AJAX response, you can look at libraries like SignalR which keep a real-time communication channel available between the client and server (which will update your values via JavaScript once implemented.)