externalised git to a variable

This is done so that i can give complete path to the git command if required
corrected jslint and jshintrc errors
Merge pull request #1 from karuturi/master

externalised git to a variable