small changes to indxjs