fix ajax methods paths