Migrated to eslint + fixed lint warnings