bug fix for response json null on firefox ajax calls