Updated index template to make json request calls relative instead of absolute