Refactoring for code cleanliness and added jquery removal of deleted todo