Moving application javascripts to draw after control scripts are drawn, on server action redraws. Was already after on ajax redraws. Also implemented a way to execute control scripts that change a control attribute, and have these only exeute if the control is not redrawn.