changed ajax to not include localhost in the call