Fixes to js-console example