Gratuitous is parseJSON is only ever used once, but handy otherwise. (Though I'd have been tempted to make it return a promise.)