eslint cleanup; trailing comma fix for IE

- Removed unused variables
- Removed double declarations
- Most importantly, removed trailing commas which were breaking IE
- Added eslint.json for future eslint usage
Preserve unused function arguments
Merge pull request #122 from aaronshaf/eslint-cleanup

eslint cleanup; trailing comma fix for IE