Bug 1100192 - [Keyboard][Handwriting] Add words prediction feature

Use `var` instead of `const` so http://timdream.org/gaia-keyboard-demo/#zh-Hans-Handwriting would work on non-Gecko browsers.
You might want to change all the `const` in the code as well.