TODOSync refactoring to jquery