First you should install Node.js
brew install node
Then git clone your JS repo.
git clone git://github.com/<alias>/<repo-name>.git
Enter the directory and install the Node dependencies.
Make sure you have
grunt installed by testing:
If not try installing it with
npm install grunt -g