Update indexer.js

add missing body