Add scripts indexer

Add the scripts indexer. Improvements to come.