Update index and add jQuery