Update index.php

1. Changing Template
2. Updating Javascript