A week can be too early for Google to process/render JavaScript and index the final content. (There is no time guarantee from Google on this. Realistically, the JS processing and rendering can take days to weeks.)
At first, Google indexes the HTML that is not modified by JS. You can call it the first phase.
Later, based on resource availability, Google processes (executes) JavaScript in the render queue. Then it indexes the final content. You can call it the second phase.
I think in your case, Google may not have completed the second phase.