Added mocha and chai as dev dependencies
Added .gitignore
Renamed variable, fixed getCondition