Fixed inconsistency in naming in index and ajax