fix jQuery bug on editing todo item