use localStorage to store API responses (bug 980081)