clean code and make then JSHint compliant
Merge pull request #48 from vinitkumar/hotfix/jshint-compliance

clean code and make then JSHint compliant