ajax update voted ids