Fixed: Index.html using the correct objects when button is clicked