added linting for all js files (including gulpfile and tests)
refactored to fix code climate issue
added code climate badge