THRIFT-3825 Javascript test dependency is no longer available
diff --git a/lib/js/Gruntfile.js b/lib/js/Gruntfile.js
index ae3783b..bff250f 100644
--- a/lib/js/Gruntfile.js
+++ b/lib/js/Gruntfile.js
@@ -44,13 +44,13 @@
         command: 'cd ../..; npm install'
       },
       ThriftGen: {
-        command: 'thrift -gen js -gen js:node -o test ../../test/ThriftTest.thrift'
+        command: '../../compiler/cpp/thrift -gen js -gen js:node -o test ../../test/ThriftTest.thrift'
       },
       ThriftGenJQ: {
-        command: 'thrift -gen js:jquery -gen js:node -o test ../../test/ThriftTest.thrift'
+        command: '../../compiler/cpp/thrift -gen js:jquery -gen js:node -o test ../../test/ThriftTest.thrift'
       },
       ThriftGenDeepConstructor: {
-        command: 'thrift -gen js -o test ../../test/JsDeepConstructorTest.thrift'
+        command: '../../compiler/cpp/thrift -gen js -o test ../../test/JsDeepConstructorTest.thrift'
       }
     },
     external_daemon: {