isomorphic fetch implementation.