Moved index code to init-containers, deleted auxiliary js script.

Minor, and very late fix, sorry. I somehow missed the notification on the comment for the previous pull request, but here it is. Indexing code now moved to init-containers, for more elegance.