JS: introduced api on Node to shorten syntax a bit