Fixing ESLint errors

Fixing some of the ESLint validation errors, in hope that we could switch Travis to ESLint once everything is clean. There're only 3 errors left, however, those couldn't be cleaned up right now, until we implement a way to disable a given rule for a file or a line of code. No ticket created for this. Let me know if you want one.