initial nodejs support
minor changes in defClass, docs, test suite