Add Ajax to update note automatically