add in protocol check when check for xhr status

If you're running locally using file:, then request.status will be 0