update indexing.js script