use localStorage for the dictionary JSON

So now it'll load faster the second time around, and potentially it could work offline (e.g. bundled as a PhoneGap app).