Update index.php

.live method of jQuery has been deprecated since version 1.7
Replaced the .live methods with .on methods.