Fix js to use indices, stead of gmap stuff