Update indices.js

Fixing #90 & #76