added NodeJS-specific module functions