yes and no, the two big issues are that a) the SPA has to work within the very poorly documented render loop, for lack of a better term, of the browser and b) Javascript has some very idiosyncratic idiosyncracies and lacks some basic language functionality that is present in most languages
ok, if a div is added to the page body, and then another div is removed, what does the render loop do? any pointers to documentation are appreciated :)