added eslint linting check, fixed problems, added eslint config, removed console statements