Added/fixed some nodejs apis.