bug 938052, better report js errors in keyboard layouts, and fix a few
Merge pull request #13700 from Pike/bug-938052-keyboard-js-errors

bug 938052, better report js errors in keyboard layouts, and fix a few, r=djf, rudyl, yuren