Flag: update link to processed via JS
You probably should run Drupal.attachBehaviors($('.newcontent')); instead of trying to add this logic manually for each module. But since you asked for flag 3.x it is Drupal.behaviors.flagLink.attach($('.newcontent'));