First working experiment.  Usage-

./word_index.py --input lookup_table.tsv --index-output test_index.js --record-output test_records.js -s 0 -p 25

-s specifies first char to begin returning record IDs
-p limits the number of IDs returned for a given search result