added nodejs export, comment changes