fixed javascript bubbling dom bug and destroyed the tasks and timers scaffolds which are no longer needed