Updated node.js defiintions

Small changes to node.js definitions:
- added second writeFile definition
- added a definition for assert module to indicate module is also an executable function

Also added a test file. Assert functions are tested, but not much else. Will need to be expanded more later.