mark JavaScript callbacks as 'async' if delayed by flash.swf. cleanup.