Refactored js using jQuery.
Mostly functionality is kept as before. Js updating of task title attr is now based one task for all the duplicates in the page. Page task view statistics improved.