added /test to .npmignore
separated all files into own nodejs module