Adding index, jquery, and making simple change