Update indexer.js

load libs only if not already there