Bug 1080652: try to work around Tarako multitouch limitations in the Keyboard

As communicated in bug 1048095, use `const` instead of `var` in keyboard app will generate JS error in WebKit browsers, but we probably don't need this script to work there so let's not worry about it.