nodejs port. Initial commit