added index and jquery