minor bugfixes

- fixed examples/complete.js
- added nodeunit dependancy