Fixed javascript callbacks, which were broken on Xcode6.
Recovered some old code, fixed the keyboard up a bit.
More keyboard fixes.