slightly better support for node.js runtime environment