stub requests only in non javascript env