Fix memory leaks to updating the DOM only on targets modifications.

The interval loop is now server side too.