Fix node-gyp configuration for example 'exception'.
Prettify generated output in JS emitters.
Fix bug and regression in javascript namespace generator.
Enable javascript examples 'exception', 'namespace'.