bug 938052, better report js errors in keyboard layouts, and fix a few