Updated various files.

Mainly templated index.js .