Issue #1506: Replace process.stdout.write with console.log

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
Issue #1511: Add new constructs to the ES6 import syntax

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>