THRIFT-2940 nodejs: move package.json to root folder

fix make dist & co
diff --git a/lib/nodejs/Makefile.am b/lib/nodejs/Makefile.am
index 3868905..9998348 100755
--- a/lib/nodejs/Makefile.am
+++ b/lib/nodejs/Makefile.am
@@ -21,18 +21,18 @@
 #stubs: $(top_srcdir)/test/ThriftTest.thrift
 #	$(THRIFT) --gen js:node -o test/ $(top_srcdir)/test/ThriftTest.thrift
 
-deps: package.json
-	$(NPM) install --no-bin-links
+deps: $(top_srcdir)/package.json
+	$(NPM) install --no-bin-links $(top_srcdir)/
 
 check: deps
-	$(NPM) test
+	cd $(top_srcdir) && $(NPM) test && cd lib/nodejs
 
 clean-local:
 	$(RM) -r test/gen-nodejs
+	$(RM) -r $(top_srcdir)/node_modules
 
 EXTRA_DIST = \
 	examples \
 	lib \
-	package.json \
 	test \
 	README.md