Made first stab at adding functionality to index.html