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
I personally think it's better to keep these unused function arguments.