eslint cleanup; trailing comma fix for IE

- Removed unused variables
- Removed double declarations
- Most importantly, removed trailing comma which was breaking IE
- Added eslint.json for future eslint usage