update index

fussing with javascript and query